<!DOCTYPE html>
<html lang="en">
    <head>
        <title>{{ APP_NAME }} Administration | {% block title %}{% endblock %}</title>
        <link rel="shortcut icon" href="/favicon.ico">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/libraries.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/template.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/grids.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/content.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/mod.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/mod_skins.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}uni_form/uni-form.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}s_te/css/main.css">
        {{ form.media }}
    </head>
    <body>
        <div class="head header">
            <div class="nav" id="header-nav">
                <div class="page line">
                    <div class="size1of1">
                        <h1>{{ APP_NAME }} Administration</h1>
                        <p>
                            <a href="{% url cm_s_main %}">view site</a>
                        </p>
                        <ul>
                            <li>
                                {% ifnotequal nav_page "s_te_admin_main" %}<a href="{% url s_te_admin_main %}">Home</a>{% else %}Home{% endifnotequal %}
                            </li>
                            <li>
                                {% ifnotequal nav_page "cm_s_admin_main" %}<a href="{% url cm_s_admin_main %}">CMS</a>{% else %}CMS{% endifnotequal %}
                            </li>
                            <li>
                                {% ifnotequal nav_page "bl_g_admin_main" %}<a href="{% url bl_g_admin_main %}">Blog</a>{% else %}Blog{% endifnotequal %}
                            </li>
                            <li>
                                {% ifnotequal nav_page "pr_j_admin_main" %}<a href="{% url pr_j_admin_main %}">Projects</a>{% else %}Projects{% endifnotequal %}
                            </li>
                            <li>
                                {% ifnotequal nav_page "bl_rb_admin_main" %}<a href="{% url bl_rb_admin_main %}">Blurbs</a>{% else %}Blurbs{% endifnotequal %}
                            </li>
                            <li>
                                {% ifnotequal nav_page "t_ch_admin_main" %}<a href="{% url t_ch_admin_main %}">Technologies</a>{% else %}Technologies{% endifnotequal %}
                            </li>
							<li>
                                {% ifnotequal nav_page "xfn_admin_main" %}<a href="{% url xfn_admin_main %}">XFN</a>{% else %}XFN{% endifnotequal %}
                            </li>
				            <li>
                                {% ifnotequal nav_page "endo_admin_main" %}<a href="{% url endo_admin_main %}">Endorsements</a>{% else %}Endorsements{% endifnotequal %}
                            </li>
							{% if GOOGLE_ANALYTICS_URL %}
							<li>
								<a href="{{ GOOGLE_ANALYTICS_URL }}">Google Analytics</a></p>
							</li>
							{% endif %}
                            <li>
                            	<a href="/admin/">Site Management</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="page">
            <div class="body" id="body">
                <div class="line">
                    <div class="unit size1of1">
                        <div class="section2" id="article">
                            <div class="article">
                                {% if messages %}
                                <div class="mod highlight" id="messages">
                                    <ul>
                                        {% for message in messages %}
                                        <li>
                                            {{ message }}
                                        </li>
                                        {% endfor %}
                                    </ul>
                                </div>
                                {% endif %}
                                {% block article %}{% endblock %}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
			<div class="foot footer" id="footer">
				<div class="line copyright" id="copyright">
					<div class="unit size1of1">
						&copy; 2009 {{ APP_NAME }}. All rights reserved.
						<ul>
                            <li><a href="{% url cm_s_page "django-webdeveloper-portfolio" %}">Source code</a></li>
                        </ul>
					</div>
				</div>
	        </div>
        </div>  
    </body>
</html>
